<template>
  <div class="AddOrUpdate_main add_container column_two">
    <json-viewer :value="jsonData" />
  </div>
</template>

<script>
import JsonViewer from 'vue-json-viewer'
export default {
  name: 'ShowMessage',
  components: { JsonViewer },
  props: {
    layerid: {},
    id: {},
    defaultValue: {}
  },
  data() {
    return {
      jsonData: {
        id: 'qwe',
        name: 'weq'
      }
    }
  },
  mounted() {
    if (this.defaultValue) {
      this.jsonData = JSON.parse(this.defaultValue.realMsg)
    }
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
</style>
